package com.useeinfo.oa.open.admin.wuHanCommon;

import com.useeinfo.framework.extend.action.BaseAction;
import com.useeinfo.oa.common.utils.ResultUtil.ResultDto;
import com.useeinfo.oa.modules.wuHanCommon.base.biz.WarningGroupInnerUserBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/web/wuhan/warningGroupInnerUser")
public class WarningGroupInnerUserAction extends BaseAction {

    @Autowired
    private WarningGroupInnerUserBiz warningGroupInnerUserBiz;

    /**
     * 获取所有报警组人员
     */
    @RequestMapping("/getWarningGroupInnerUserTree")
    @ResponseBody
    public ResultDto getWarningGroupInnerUserTree(@RequestParam(value = "warningGroupId", required = false) String warningGroupId,
                                                  @RequestParam(value = "sysCode", required = false) String sysCode) {
        return warningGroupInnerUserBiz.getWarningGroupInnerUserTree(sysCode, warningGroupId);
    }
}
